package com.itheima.api.client.User;

import com.itheima.api.client.entity.AdminUser;
import com.itheima.api.client.entity.WebUser;
import com.itheima.api.client.vo.BlogContributionVO;
import com.itheima.api.client.vo.ProvinceBLogNum;
import com.itheima.api.client.vo.TBlogByCategoryID;
import com.itheima.api.client.vo.TBlogByTagID;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "blog-auth")
public interface UserClient {
    @GetMapping(value = "auth/adminUser/{id}")
    AdminUser getAdminUser(@PathVariable("id")Integer id);

    @GetMapping(value = "auth/webUser/{id}")
    WebUser getWebUser(@PathVariable("id")Integer id);
    @PostMapping(value = "auth/webUser/{name}")
    WebUser getWebUserByName(@PathVariable("name")String name);


}
